Changed the keyboard API

Spout PR: SpoutDev/Spout#

Signed-off-by:thehutch <th3hutch@yahoo.co.uk>