isKeyPressed

function isKeyPressed(key)

Returns true if the given keycode is valid and pressed down