Added support for function keys