Added the keyPress() function + documentation.