launcher: Move grabbing keyboard mechanism to the `device` module