KeyCode列挙型(Enum)

列挙型(Enum)日本語解説は準備中

ひとことで言うと

KeyCodeは、ロブロックス(Roblox)の列挙型(Enum)です。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。

公式の説明(英語):Byte keycodes that represent the key or button involved in user input.

選べる値(283)

名前値説明
Enum.KeyCode.None0
Enum.KeyCode.Backspace8The Backspace key.
Enum.KeyCode.Tab9The Tab key.
Enum.KeyCode.Clear12Only present on certain keyboards.
Enum.KeyCode.Return13Frequently known as **Enter**.
Enum.KeyCode.Pause19Only present on certain keyboards.
Enum.KeyCode.Escape27The Escape key.
Enum.KeyCode.Space32The Space key.
Enum.KeyCode.QuotedDouble34The " key.
Enum.KeyCode.Hash35The # key.
Enum.KeyCode.Dollar36The $ key.
Enum.KeyCode.Percent37The % key.
Enum.KeyCode.Ampersand38The & key.
Enum.KeyCode.Quote39The ' key.
Enum.KeyCode.LeftParenthesis40The ( key.
Enum.KeyCode.RightParenthesis41The ) key.
Enum.KeyCode.Asterisk42The * key.
Enum.KeyCode.Plus43The + key.
Enum.KeyCode.Comma44The , key.
Enum.KeyCode.Minus45The - key.
Enum.KeyCode.Period46The . key.
Enum.KeyCode.Slash47The / key.
Enum.KeyCode.Zero48The 0 key.
Enum.KeyCode.One49The 1 key.
Enum.KeyCode.Two50The 2 key.
Enum.KeyCode.Three51The 3 key.
Enum.KeyCode.Four52The 4 key.
Enum.KeyCode.Five53The 5 key.
Enum.KeyCode.Six54The 6 key.
Enum.KeyCode.Seven55The 7 key.
Enum.KeyCode.Eight56The 8 key.
Enum.KeyCode.Nine57The 9 key.
Enum.KeyCode.Colon58The : key.
Enum.KeyCode.Semicolon59The ; key.
Enum.KeyCode.LessThan60The < key.
Enum.KeyCode.Equals61The = key.
Enum.KeyCode.GreaterThan62The > key.
Enum.KeyCode.Question63The ? key.
Enum.KeyCode.At64The @ key.
Enum.KeyCode.LeftBracket91The [ key.
Enum.KeyCode.BackSlash92The \ key.
Enum.KeyCode.RightBracket93The ] key.
Enum.KeyCode.Caret94The ^ key.
Enum.KeyCode.Underscore95The _ key.
Enum.KeyCode.Backquote96The ` `` key.
Enum.KeyCode.A97The A key.
Enum.KeyCode.B98The B key.
Enum.KeyCode.C99The C key.
Enum.KeyCode.D100The D key.
Enum.KeyCode.E101The E key.
Enum.KeyCode.F102The F key.
Enum.KeyCode.G103The G key.
Enum.KeyCode.H104The H key.
Enum.KeyCode.I105The I key.
Enum.KeyCode.J106The J key.
Enum.KeyCode.K107The K key.
Enum.KeyCode.L108The L key.
Enum.KeyCode.M109The M key.
Enum.KeyCode.N110The N key.
Enum.KeyCode.O111The O key.
Enum.KeyCode.P112The P key.
Enum.KeyCode.Q113The Q key.
Enum.KeyCode.R114The R key.
Enum.KeyCode.S115The S key.
Enum.KeyCode.T116The T key.
Enum.KeyCode.U117The U key.
Enum.KeyCode.V118The V key.
Enum.KeyCode.W119The W key.
Enum.KeyCode.X120The X key.
Enum.KeyCode.Y121The Y key.
Enum.KeyCode.Z122The Z key.
Enum.KeyCode.LeftCurly123The { key.
Enum.KeyCode.Pipe124The | key.
Enum.KeyCode.RightCurly125The } key.
Enum.KeyCode.Tilde126The ~ key.
Enum.KeyCode.Delete127The Del key.
Enum.KeyCode.World0160Deprecated
Enum.KeyCode.World1161Deprecated
Enum.KeyCode.World2162Deprecated
Enum.KeyCode.World3163Deprecated
Enum.KeyCode.World4164Deprecated
Enum.KeyCode.World5165Deprecated
Enum.KeyCode.World6166Deprecated
Enum.KeyCode.World7167Deprecated
Enum.KeyCode.World8168Deprecated
Enum.KeyCode.World9169Deprecated
Enum.KeyCode.World10170Deprecated
Enum.KeyCode.World11171Deprecated
Enum.KeyCode.World12172Deprecated
Enum.KeyCode.World13173Deprecated
Enum.KeyCode.World14174Deprecated
Enum.KeyCode.World15175Deprecated
Enum.KeyCode.World16176Deprecated
Enum.KeyCode.World17177Deprecated
Enum.KeyCode.World18178Deprecated
Enum.KeyCode.World19179Deprecated
Enum.KeyCode.World20180Deprecated
Enum.KeyCode.World21181Deprecated
Enum.KeyCode.World22182Deprecated
Enum.KeyCode.World23183Deprecated
Enum.KeyCode.World24184Deprecated
Enum.KeyCode.World25185Deprecated
Enum.KeyCode.World26186Deprecated
Enum.KeyCode.World27187Deprecated
Enum.KeyCode.World28188Deprecated
Enum.KeyCode.World29189Deprecated
Enum.KeyCode.World30190Deprecated
Enum.KeyCode.World31191Deprecated
Enum.KeyCode.World32192Deprecated
Enum.KeyCode.World33193Deprecated
Enum.KeyCode.World34194Deprecated
Enum.KeyCode.World35195Deprecated
Enum.KeyCode.World36196Deprecated
Enum.KeyCode.World37197Deprecated
Enum.KeyCode.World38198Deprecated
Enum.KeyCode.World39199Deprecated
Enum.KeyCode.World40200Deprecated
Enum.KeyCode.World41201Deprecated
Enum.KeyCode.World42202Deprecated
Enum.KeyCode.World43203Deprecated
Enum.KeyCode.World44204Deprecated
Enum.KeyCode.World45205Deprecated
Enum.KeyCode.World46206Deprecated
Enum.KeyCode.World47207Deprecated
Enum.KeyCode.World48208Deprecated
Enum.KeyCode.World49209Deprecated
Enum.KeyCode.World50210Deprecated
Enum.KeyCode.World51211Deprecated
Enum.KeyCode.World52212Deprecated
Enum.KeyCode.World53213Deprecated
Enum.KeyCode.World54214Deprecated
Enum.KeyCode.World55215Deprecated
Enum.KeyCode.World56216Deprecated
Enum.KeyCode.World57217Deprecated
Enum.KeyCode.World58218Deprecated
Enum.KeyCode.World59219Deprecated
Enum.KeyCode.World60220Deprecated
Enum.KeyCode.World61221Deprecated
Enum.KeyCode.World62222Deprecated
Enum.KeyCode.World63223Deprecated
Enum.KeyCode.World64224Deprecated
Enum.KeyCode.World65225Deprecated
Enum.KeyCode.World66226Deprecated
Enum.KeyCode.World67227Deprecated
Enum.KeyCode.World68228Deprecated
Enum.KeyCode.World69229Deprecated
Enum.KeyCode.World70230Deprecated
Enum.KeyCode.World71231Deprecated
Enum.KeyCode.World72232Deprecated
Enum.KeyCode.World73233Deprecated
Enum.KeyCode.World74234Deprecated
Enum.KeyCode.World75235Deprecated
Enum.KeyCode.World76236Deprecated
Enum.KeyCode.World77237Deprecated
Enum.KeyCode.World78238Deprecated
Enum.KeyCode.World79239Deprecated
Enum.KeyCode.World80240Deprecated
Enum.KeyCode.World81241Deprecated
Enum.KeyCode.World82242Deprecated
Enum.KeyCode.World83243Deprecated
Enum.KeyCode.World84244Deprecated
Enum.KeyCode.World85245Deprecated
Enum.KeyCode.World86246Deprecated
Enum.KeyCode.World87247Deprecated
Enum.KeyCode.World88248Deprecated
Enum.KeyCode.World89249Deprecated
Enum.KeyCode.World90250Deprecated
Enum.KeyCode.World91251Deprecated
Enum.KeyCode.World92252Deprecated
Enum.KeyCode.World93253Deprecated
Enum.KeyCode.World94254Deprecated
Enum.KeyCode.World95255Deprecated
Enum.KeyCode.KeypadZero256The 0 key on the keypad cluster.
Enum.KeyCode.KeypadOne257The 1 key on the keypad cluster.
Enum.KeyCode.KeypadTwo258The 2 key on the keypad cluster.
Enum.KeyCode.KeypadThree259The 3 key on the keypad cluster.
Enum.KeyCode.KeypadFour260The 4 key on the keypad cluster.
Enum.KeyCode.KeypadFive261The 5 key on the keypad cluster.
Enum.KeyCode.KeypadSix262The 6 key on the keypad cluster.
Enum.KeyCode.KeypadSeven263The 7 key on the keypad cluster.
Enum.KeyCode.KeypadEight264The 8 key on the keypad cluster.
Enum.KeyCode.KeypadNine265The 9 key on the keypad cluster.
Enum.KeyCode.KeypadPeriod266The . key on the keypad cluster.
Enum.KeyCode.KeypadDivide267The / key on the keypad cluster.
Enum.KeyCode.KeypadMultiply268The * key on the keypad cluster.
Enum.KeyCode.KeypadMinus269The - key on the keypad cluster.
Enum.KeyCode.KeypadPlus270The + key on the keypad cluster.
Enum.KeyCode.KeypadEnter271The Enter key on the keypad cluster.
Enum.KeyCode.KeypadEquals272The = key on the keypad cluster.
Enum.KeyCode.Up273The ↑ arrow key.
Enum.KeyCode.Down274The ↓ arrow key.
Enum.KeyCode.Right275The → arrow key.
Enum.KeyCode.Left276The ← arrow key.
Enum.KeyCode.Insert277The Insert key.
Enum.KeyCode.Home278The Home key.
Enum.KeyCode.End279The End key.
Enum.KeyCode.PageUp280The PgUp key.
Enum.KeyCode.PageDown281The PgDown key.
Enum.KeyCode.F1282The F1 key.
Enum.KeyCode.F2283The F2 key.
Enum.KeyCode.F3284The F3 key.
Enum.KeyCode.F4285The F4 key.
Enum.KeyCode.F5286The F5 key.
Enum.KeyCode.F6287The F6 key.
Enum.KeyCode.F7288The F7 key.
Enum.KeyCode.F8289The F8 key.
Enum.KeyCode.F9290The F9 key.
Enum.KeyCode.F10291The F10 key.
Enum.KeyCode.F11292The F11 key.
Enum.KeyCode.F12293The F12 key.
Enum.KeyCode.F13294The F13 key. Only present on certain keyboards.
Enum.KeyCode.F14295The F14 key. Only present on certain keyboards.
Enum.KeyCode.F15296The F15 key. Only present on certain keyboards.
Enum.KeyCode.NumLock300The Num Lock key on the keypad cluster.
Enum.KeyCode.CapsLock301The Caps Lock key.
Enum.KeyCode.ScrollLock302The Scr Lock key.
Enum.KeyCode.RightShift303The right side Shift key.
Enum.KeyCode.LeftShift304The left side Shift key.
Enum.KeyCode.RightControl305The right side Ctrl key.
Enum.KeyCode.LeftControl306The left side Ctrl key.
Enum.KeyCode.RightAlt307The right side Alt key.
Enum.KeyCode.LeftAlt308The left side Alt key.
Enum.KeyCode.RightMeta309The right side Meta key.
Enum.KeyCode.LeftMeta310The left side Meta key.
Enum.KeyCode.LeftSuper311The left side Super key. Better known as the Windows key or <kbd>Cmd</kbd> key.
Enum.KeyCode.RightSuper312The right side Super key. Better known as the Windows key or <kbd>Cmd</kbd> key.
Enum.KeyCode.Mode313Only present on certain keyboards.
Enum.KeyCode.Compose314Only present on certain keyboards.
Enum.KeyCode.Help315Only present on certain keyboards.
Enum.KeyCode.Print316Only present on certain keyboards.
Enum.KeyCode.SysReq317Only present on certain keyboards.
Enum.KeyCode.Break318Only present on certain keyboards.
Enum.KeyCode.Menu319The Menu key.
Enum.KeyCode.Power320Only present on certain keyboards.
Enum.KeyCode.Euro321The € key. Only present on certain keyboards.
Enum.KeyCode.Undo322Only present on certain keyboards.
Enum.KeyCode.ButtonX1000Gamepad X button.
Enum.KeyCode.ButtonY1001Gamepad Y button.
Enum.KeyCode.ButtonA1002Gamepad A button.
Enum.KeyCode.ButtonB1003Gamepad B button.
Enum.KeyCode.ButtonR11004Gamepad R1 button.
Enum.KeyCode.ButtonL11005Gamepad L1 button.
Enum.KeyCode.ButtonR21006Gamepad R2 button.
Enum.KeyCode.ButtonL21007Gamepad L2 button.
Enum.KeyCode.ButtonR31008Gamepad R3 button.
Enum.KeyCode.ButtonL31009Gamepad L3 button.
Enum.KeyCode.ButtonStart1010Gamepad Start button.
Enum.KeyCode.ButtonSelect1011Gamepad Select button.
Enum.KeyCode.DPadLeft1012Left arrow on a gamepad D-pad.
Enum.KeyCode.DPadRight1013Right arrow on a gamepad D-pad.
Enum.KeyCode.DPadUp1014Up arrow on a gamepad D-pad.
Enum.KeyCode.DPadDown1015Down arrow on a gamepad D-pad.
Enum.KeyCode.Thumbstick11016Gamepad primary thumbstick.
Enum.KeyCode.Thumbstick21017Gamepad secondary thumbstick.
Enum.KeyCode.Thumbstick1Up1018Up vector on the gamepad primary thumbstick. Primarily used in the Input Action System.
Enum.KeyCode.Thumbstick1Down1019Down vector on the gamepad primary thumbstick. Primarily used in the Input Action System.
Enum.KeyCode.Thumbstick1Left1020Left vector on the gamepad primary thumbstick. Primarily used in the Input Action System.
Enum.KeyCode.Thumbstick1Right1021Right vector on the gamepad primary thumbstick. Primarily used in the Input Action System.
Enum.KeyCode.Thumbstick2Up1022Up vector on the gamepad secondary thumbstick. Primarily used in the Input Action System.
Enum.KeyCode.Thumbstick2Down1023Down vector on the gamepad secondary thumbstick. Primarily used in the Input Action System.
Enum.KeyCode.Thumbstick2Left1024Left vector on the gamepad secondary thumbstick. Primarily used in the Input Action System.
Enum.KeyCode.Thumbstick2Right1025Right vector on the gamepad secondary thumbstick. Primarily used in the Input Action System.
Enum.KeyCode.MouseLeftButton1026The left mouse button, also commonly referred to as "button 1" on a generic mouse. Primarily used in the Input Action System.
Enum.KeyCode.MouseRightButton1027The right mouse button, also commonly referred to as "button 2" on a generic mouse. Primarily used in the Input Action System.
Enum.KeyCode.MouseMiddleButton1028The middle mouse button, also commonly referred to as "button 3" on a generic mouse. Primarily used in the Input Action System.
Enum.KeyCode.MousePosition1033The position of a mouse in the viewport. Primarily used in the Input Action System.
Enum.KeyCode.TouchPosition1034The position of a touch in the viewport. Primarily used in the Input Action System.
Enum.KeyCode.MouseWheel1035The scroll delta (change) of a mouse wheel. Primarily used in the Input Action System, returning a velocity in scroll units per second (where one scroll unit is approximately equivalent to a standard mouse wheel notch) under a Enum.InputActionType|Direction1D action type.
Enum.KeyCode.TrackpadPan1040The pan delta (change) from a trackpad two-finger pan gesture. Primarily used in the Input Action System, returning a velocity in pixels per second under a Enum.InputActionType|Direction2D action type.
Enum.KeyCode.TrackpadPinch1045The scale delta (change) from a trackpad two-finger pinch gesture. Primarily used in the Input Action System, returning a velocity in scroll units per second (where one scroll unit is approximately equivalent to a standard mouse wheel notch) under a Enum.InputActionType|Direction1D action type.
Enum.KeyCode.MouseDelta1048The movement delta (change) of the mouse cursor. Primarily used in the Input Action System, returning a velocity in pixels per second under a Enum.InputActionType|Direction2D action type.
Enum.KeyCode.TouchDelta1049The movement delta (change) of a touch input. Primarily used in the Input Action System, returning a velocity in pixels per second under a Enum.InputActionType|Direction2D action type.
Enum.KeyCode.TouchPinch1050The scale delta (change) from a touch two-finger pinch gesture. Primarily used in the Input Action System, returning a velocity in pixels per second under a Enum.InputActionType|Direction1D action type.
Enum.KeyCode.ButtonCenter1051TV remote Center button.
Enum.KeyCode.ButtonBack1052TV remote Back button.
Enum.KeyCode.ButtonUp1053MicroGamepad (including TV remotes) Up directional button.
Enum.KeyCode.ButtonDown1054MicroGamepad (including TV remotes) Down directional button.
Enum.KeyCode.ButtonLeft1055MicroGamepad (including TV remotes) Left directional button.
Enum.KeyCode.ButtonRight1056MicroGamepad (including TV remotes) Right directional button.

英語の説明とメンバーの一覧は、Roblox Creator Documentation(KeyCode)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。

執筆:鈴木孝昌官公庁のWeb・システム開発を担当する現役プロジェクトマネージャー。沖縄マイクラ部 クロスウェーブで、ロブロックス(Roblox)・マインクラフト(マイクラ)・Scratchなどのプログラミングを指導。マイクラカップ沖縄代表チームを指導(第6回・第7回、第7回TBS賞)。
沖縄マイクラ部で、子どもたちにロブロックス(Roblox)やマインクラフト(マイクラ)のプログラミングを教えています。プロフィールと編集方針
Instagramで教室の様子を見る
noteで記事を読む