I don’t think the Processing console can capture input like that.
How about using something that employs keyPressed() and text() functions to render user input in the display window –
def setup():
size(300, 300)
where_to_go = ''
def draw():
background(100)
text('where would you like to go?', 20, 50)
text(where_to_go, 20, 100)
def keyPressed():
global where_to_go
where_to_go += key
You can use a if key == ENTER within the keyPressed() function to detect when the user hits the enter key.