input function works in scene