Changed the keyboard API

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