if keyboard_check(ord('A')) { x-=5 } if keyboard_check(ord('D')) { x+=5 } if keyboard_check(ord('W')) { y-=5 } if keyboard_check(ord('S')) { y+=5 }