Nice beginning ! You should use a function like "keyboard.isDown(key)" instead of "keypressed(key)"
Thanks! Yeah, I think I've tried that then the player ends up flying off the screen. I'll have to give it another go.