Tetris game: Key input

I'm working on a 3D tetris game and i'm trying to get the input right.



basically i'm try to get the blocks to move left or right, with each key press, a specific amount of space and not continuously.



thanks.

There are a few tutorials out on the wiki about key and mouse input.

If you are using some kind of SimpleGame, check out:

http://www.jmonkeyengine.com/wiki/doku.php?id=inputsystem_and_inputhandler_guide

If you are using StandardGame and GameStates, check out:

http://www.jmonkeyengine.com/wiki/doku.php?id=gamecontrol_basics