Before you close the door, you must press a button. If you don't press a button before closing the doors, the elevator might get stuck.
Thanks to @takasyu for the translation.