This is for issue #311: Changing behavior of send() in keyboard class

Changing behavior of send() in keyboard class.