Storing the last keycode pressed and writing it back out when user apps read fromt the registered device