Added select method

For now it runs on a String input, later this will be changed to a
MouseListenerEvent or something like that.