Preparing for keyboard emulation.