Support for function keys and unlock