Changed the keyboard API

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