Phaser.KeyCode

new KeyCode()

A key code represents a physical key on a keyboard.

The KeyCode class contains commonly supported keyboard key codes which can be used as keycode`-parameters in several Phaser.Keyboard and Phaser.Key methods.

Note: These values should only be used indirectly, eg. as Phaser.KeyCode.KEY. Future versions may replace the actual values, such that they remain compatible with keycode-parameters. The current implementation maps to the KeyboardEvent.keyCode property.

Note: Use Phaser.KeyCode.KEY instead of Phaser.Keyboard.KEY to refer to a key code; the latter approach is supported for compatibility.

Source - input/Keyboard.js, line 639

Members

<static> A

Source - input/Keyboard.js, line 641

<static>ALT

Source - input/Keyboard.js, line 809

<static>B

Source - input/Keyboard.js, line 643

<static>BACKSPACE

Source - input/Keyboard.js, line 797

<static>BACKWARD_SLASH

Source - input/Keyboard.js, line 791

<static>C

Source - input/Keyboard.js, line 645

<static>CAPS_LOCK

Source - input/Keyboard.js, line 811

<static>CLEAR

Source - input/Keyboard.js, line 801

<static>CLOSED_BRACKET

Source - input/Keyboard.js, line 793

<static>COLON

Source - input/Keyboard.js, line 775

<static>COMMA

Source - input/Keyboard.js, line 779

<static>CONTROL

Source - input/Keyboard.js, line 807

<static>D

Source - input/Keyboard.js, line 647

<static>DELETE

Source - input/Keyboard.js, line 839

<static>DOWN

Source - input/Keyboard.js, line 831

<static>E

Source - input/Keyboard.js, line 649

<static>EIGHT

Source - input/Keyboard.js, line 709

<static>END

Source - input/Keyboard.js, line 821

<static>ENTER

Source - input/Keyboard.js, line 803

<static>EQUALS

Source - input/Keyboard.js, line 777

<static>ESC

Source - input/Keyboard.js, line 813

<static>F

Source - input/Keyboard.js, line 651

<static>F1

Source - input/Keyboard.js, line 745

<static>F2

Source - input/Keyboard.js, line 747

<static>F3

Source - input/Keyboard.js, line 749

<static>F4

Source - input/Keyboard.js, line 751

<static>F5

Source - input/Keyboard.js, line 753

<static>F6

Source - input/Keyboard.js, line 755

<static>F7

Source - input/Keyboard.js, line 757

<static>F8

Source - input/Keyboard.js, line 759

<static>F9

Source - input/Keyboard.js, line 761

<static>F10

Source - input/Keyboard.js, line 763

<static>F11

Source - input/Keyboard.js, line 765

<static>F12

Source - input/Keyboard.js, line 767

<static>F13

Source - input/Keyboard.js, line 769

<static>F14

Source - input/Keyboard.js, line 771

<static>F15

Source - input/Keyboard.js, line 773

<static>FIVE

Source - input/Keyboard.js, line 703

<static>FOUR

Source - input/Keyboard.js, line 701

<static>G

Source - input/Keyboard.js, line 653

<static>H

Source - input/Keyboard.js, line 655

<static>HELP

Source - input/Keyboard.js, line 841

<static>HOME

Source - input/Keyboard.js, line 823

<static>I

Source - input/Keyboard.js, line 657

<static>INSERT

Source - input/Keyboard.js, line 837

<static>J

Source - input/Keyboard.js, line 659

<static>K

Source - input/Keyboard.js, line 661

<static>L

Source - input/Keyboard.js, line 663

<static>LEFT

Source - input/Keyboard.js, line 825

<static>M

Source - input/Keyboard.js, line 665

<static>MINUS

Source - input/Keyboard.js, line 835

<static>N

Source - input/Keyboard.js, line 667

<static>NINE

Source - input/Keyboard.js, line 711

<static>NUM_LOCK

Source - input/Keyboard.js, line 843

<static>NUMPAD_0

Source - input/Keyboard.js, line 713

<static>NUMPAD_1

Source - input/Keyboard.js, line 715

<static>NUMPAD_2

Source - input/Keyboard.js, line 717

<static>NUMPAD_3

Source - input/Keyboard.js, line 719

<static>NUMPAD_4

Source - input/Keyboard.js, line 721

<static>NUMPAD_5

Source - input/Keyboard.js, line 723

<static>NUMPAD_6

Source - input/Keyboard.js, line 725

<static>NUMPAD_7

Source - input/Keyboard.js, line 727

<static>NUMPAD_8

Source - input/Keyboard.js, line 729

<static>NUMPAD_9

Source - input/Keyboard.js, line 731

<static>NUMPAD_ADD

Source - input/Keyboard.js, line 735

<static>NUMPAD_DECIMAL

Source - input/Keyboard.js, line 741

<static>NUMPAD_DIVIDE

Source - input/Keyboard.js, line 743

<static>NUMPAD_ENTER

Source - input/Keyboard.js, line 737

<static>NUMPAD_MULTIPLY

Source - input/Keyboard.js, line 733

<static>NUMPAD_SUBTRACT

Source - input/Keyboard.js, line 739

<static>O

Source - input/Keyboard.js, line 669

<static>ONE

Source - input/Keyboard.js, line 695

<static>OPEN_BRACKET

Source - input/Keyboard.js, line 789

<static>P

Source - input/Keyboard.js, line 671

<static>PAGE_DOWN

Source - input/Keyboard.js, line 819

<static>PAGE_UP

Source - input/Keyboard.js, line 817

<static>PERIOD

Source - input/Keyboard.js, line 783

<static>PLUS

Source - input/Keyboard.js, line 833

<static>Q

Source - input/Keyboard.js, line 673

<static>QUESTION_MARK

Source - input/Keyboard.js, line 785

<static>QUOTES

Source - input/Keyboard.js, line 795

<static>R

Source - input/Keyboard.js, line 675

<static>RIGHT

Source - input/Keyboard.js, line 829

<static>S

Source - input/Keyboard.js, line 677

<static>SEVEN

Source - input/Keyboard.js, line 707

<static>SHIFT

Source - input/Keyboard.js, line 805

<static>SIX

Source - input/Keyboard.js, line 705

<static>SPACEBAR

Source - input/Keyboard.js, line 815

<static>T

Source - input/Keyboard.js, line 679

<static>TAB

Source - input/Keyboard.js, line 799

<static>THREE

Source - input/Keyboard.js, line 699

<static>TILDE

Source - input/Keyboard.js, line 787

<static>TWO

Source - input/Keyboard.js, line 697

<static>U

Source - input/Keyboard.js, line 681

<static>UNDERSCORE

Source - input/Keyboard.js, line 781

<static>UP

Source - input/Keyboard.js, line 827

<static>V

Source - input/Keyboard.js, line 683

<static>W

Source - input/Keyboard.js, line 685

<static>X

Source - input/Keyboard.js, line 687

<static>Y

Source - input/Keyboard.js, line 689

<static>Z

Source - input/Keyboard.js, line 691

<static>ZERO

Source - input/Keyboard.js, line 693