Added support for pressing and holding keys