PROBLEM TO BE SOLVED: To provide a key device capable of accurately measuring a movement of a subject in a brain activity measurement device by a magnetic field.SOLUTION: A keyboard 100 is a key device for detecting a key striking operation of a subject for a movement assignment during the measurement of a cranium part of the subject 2 in an MRI device 10 and includes a keyboard body 102 formed of a non-magnetic material. The keyboard body 102 is configured so as to rotate around a predetermined supporting point by the operation of the subject 2, and includes a front end part for receiving the operation of the subject 2 and a rear end part 108 provided at a position opposed to the front end part so as to rotate in conjunction with the rotation of the front end part. An optical sensor 202 is formed of a non-magnetic material for detecting the position of the rear face of the rear end part 108, and generates output that changes according to the direction of the rear face of the rear end part 108 accompanying the rotation.COPYRIGHT: (C)2016,JPO&INPIT【課題】磁場による脳活動測定装置において、被験者の運動を正確に計測することが可能なキー装置を提供する。【解決手段】鍵盤100は、MRI装置10における被験者2の頭蓋部分の測定中に、運動課題について被験者の打鍵操作の検出を行うためのキー装置であって、非磁性材料から形成された鍵盤本体102を備え、鍵盤本体102は、所定の支点のまわりに、被験者2の操作により回動するように構成され、操作者2の操作を受ける前端部と、前端部の回動に連動して回動するように前端部と対向する位置に設けられる後端部108とを含む。光学センサ202は、後端部108の後面の位置を検出するための非磁性材料から成り、回動に伴って後端部108の後面の向き応じて変化する出力を生成する。【選択図】図2