wasd movement Space is a ranged attack, it goes towards the enemy but cant change direction after being launched, sticks to walls. 1 is a trap, It stays in place for a second or two before going away.
thanks to @CuriousDinosaurr for the movement code