set key_pressed_return_value by callback