Search database when enter is pressed

Hi,
Check out the API that refers keyboard event here .
Basically you can create an event for enter key press or any other key only while the cursor is located inside a textInput or textBox.