added text input

Text input capabilities added.
Default mode of "none" added.
Zoom stuff.

Added zoom stuff. (mainly from HBME)
Modified text input and added getKey()

hasTextInput is now boolean instead of  "text" mode.
getKey() function returns first key found for specified value in a given
table.