execute commands with enter key