After some tooling around I have figured a way for it. My problem was I always used my keypad for commands like 1: bash @target 2: dirt @target etc....however when I was trying to put it into the keypad it would keep @target and not the variable for it. I just made the alias and then put the alias in the key function and it all works.