Add poll methods to get key codes