Execute command by pressing enter