Hello guys, how to pause with the letter P with add listener or something, except this example:

Code:
if (Key.isDown(letter))
{
pause = true;
}