A keyboard device includes: a base member having a top face on which a first unit and a second unit are placed; a driving part configured to relatively move the first unit and the second unit between a storage position and a usage position; at the storage position, the first side face and the second side face meshing with each other while being displaced in a front-rear direction of the keyboard device; at the usage position, the first side face and the second side face meshing with each other without being displaced in the front-rear direction so that the units are placed side by side in a left-right direction of the keyboard device to define a single keyboard; and an operating member configured to move the first unit and the second unit between the usage position and the storage position.