An open library of RPG Maker MZ plugins, powered by the community.

PGMZ - The Community-Driven Plugin Library for RPG Maker MZ

MZ plugins

Key Switch - KeySwitch.js

Plugin desc : Keyswitch Plugin

License : MIT License

Author : Triacontane

Website : https://triacontane.blogspot.com

Desc page : https://github.com/triacontane/RPGMakerMV/tree/mz_master/KeySwitch.js

Download Page : https://raw.githubusercontent.com/munokura/triacontane-MZ-plugins/refs/heads/main/KeySwitch.js

File name : KeySwitch.js

Help of plugin :

@target MZ
@url https://github.com/triacontane/RPGMakerMV/tree/mz_master/KeySwitch.js
@plugindesc Keyswitch Plugin
@author Triacontane
@license MIT License

@help
English Help Translator: munokura
This is an unofficial English translation of the plugin help,
created to support global RPG Maker users.
Feedback is welcome to improve translation quality
(see: https://github.com/munokura/triacontane-MZ-plugins ).
Original plugin by Triacontane.
Please check the latest official version at:
https://triacontane.blogspot.com
-----

KeySwitch.js

Turns on a switch by pressing a key.
The switch condition is always met while the key is held down.
Please note that this is active regardless of the scene.

If you want to use a key other than the existing ones, add it to the key code
list.
However, depending on the registration content, a keyboard may be required.
Please research the key code value for each key yourself.
For example, the key code for the A key is 65.

This plugin requires the base plugin ”PluginCommonBase.js.”
”PluginCommonBase.js” is located in the following folder
under the RPG Maker MZ installation folder:
dlc/BasicResources/plugins/official

Terms of Use:
You may modify and redistribute this plugin without permission from the
author, and there are no restrictions on its use (commercial, R18, etc.).
This plugin is now yours.

@param keyList
@text Key Settings List
@desc Key switch settings. Register the key information to control the switch.
@type struct<Key>[]
@default []

@param codeList
@text Key Code List
@desc A list of key codes to register. Used when registering keys other than existing keys.
@type struct<Code>[]
@default []

スポンサードリンク

-MZ plugins

Copyright© PGMZ - The Community-Driven Plugin Library for RPG Maker MZ , 2026 All Rights Reserved.