Enhanced API of KeyboardTestSupport.

Signed-off-by: Stefan Hennig <stefan@monkey-works.de>