Portal 2

Portal 2

34 ratings
leosefcik's Magical Keyboard!
By leosefcik
Did you ever think about having a buncha cool commands on your keyboard? Like pressing a key to fire rockets, or spawn a buncha cubes? Do you want to use it to test your new chambers? Then fear not, the leosefcik's Magical Keyboard is for you!
This is a command consisting of a buncha binds with many features ranging from useful like enabling server cheats or toggle the never fail portal command to straight-out fun like spawn in error entities and launch rockets on your friends (or turrets for yall singleplayer people)!
   
Award
Favorite
Favorited
Unfavorite
Preparation
Make sure that before starting, go to settings / keyboard and mouse / edit keys / advanced / enable developer console and tick this. Then, if you press the squiggly line on your keyboard (~, should be next to the 1 key) you should get a gray window having some text in it. Congratulations! now, type in this command in the brackets (without the brackets): [sv_cheats 1]. This will make it possible to apply the Magical Keyboard. Now read the other section to know the functions!
The commands and keys
The whole command will be on the Command section, the little commands under the functions are just how they look. So don’t copy anything until you get to the section!
Function Keys:

Server cheats on/off: Turn this on by pressing the H key and off with the J key. Turning this on is a requirement, since without it many of the keys in this magical keyboard won't work! So you can toggle if you want the keyboard or no with those 2 keys.
bind h "sv_cheats 1"
bind j "sv_cheats 0"

Flashlight: Toggle your flashlight on and off with the Enter (Return) key! This can help you in dark areas to see!
bind enter "impulse 100"

God mode: Toggles the God mode with the G key, which makes you invincible! That means you can't die, only in some very particular ways (like using the kill command)! Swim trough goo, get shot at by turrets and you will still live!
bind g god

Never fail portal placement on/off: You can turn this on by pressing the U key and off by pressing the I key. If you turn this on, you can place your portals anywhere you like! On black walls? Maybe behind walls? Under walls? You decide!
bind u "sv_portal_placement_never_fail 1"
bind i "sv_portal_placement_never_fail 0"

Noclip: Toggle the noclip mode by pressing V! This mode can make your character fly trough the whole map! Not only that, you can also fly trough walls! Now isn't that cool?
bind v noclip

Kill: Too lazy to get out of a trap or something? Do you just want to respawn? You can use the kill command on the M key to literally die in place and respawn! Note that this works even if you have godmode!
bind m kill

First/Third person: Get the first person mode with the N key and third person with B. If you have third person, this will move your camera behind your character so you can play and see your character at the same time! Having first person mode will put the camera back into your character eyes so you can play with the old view!
bind b thirdperson
bind n firstperson

Notarget: Toggle this with the X key. Having notarget will make you invisible to the turret's eyes, so you can walk right past them and they won't even budge!
bind x notarget

Rocket: Fire exploding rockets at your enemies (or whatever you want)! Using the C key, you can fire rockets that will go to the place you aimed at when firing them, and they will glide right there and explode upon collision! A really fun tool to have!
bind c fire_rocket_projectile

Pellet: Something similar to the rocket, but now it's on the Y key and if you press it, you launch a orb pellet that flies to the place you aimed at, and will bounce from walls a couple of times before self-destructing! It can also kill people and fling turrets, so beware!
bind y fire_energy_ball

Burn: Are you a pyromaniac? Now, when pressing the Right Shift key you can set a thing on fire! Just look at it, press the key and watch it burn!
bind rshift "ent_fire !picker ignite"

Reset: Did you make an error with placing your portals but you can't unplace them? Would you like to just delete your portals? Now you can by pressing R!
bind r "ent_fire prop_portal fizzle"

Remove: Did you spawn in too much cubes? Or do you want to remove stuff? You can press the Alt key to remove entities you are looking at! But beware! Using this incorrectly may possibly crash the game!
bind alt ent_remove

Spawn Keys:

Wheatley: Press O to spawn the Wheatley core!
bind o "ent_create npc_personality_core"

Cube: Press P to spawn in one of those Weighted Storage Cubes!
bind p ent_create_portal_weighted_cube

Turret: Press Z to spawn in one of the turrets! Beware, they can kill!
bind z "npc_create npc_portal_turret_floor"

Camera: Spawn in one of those security cameras in by pressing L!
bind l "ent_create npc_security_camera"

Gels: You can spawn in blobs of the gels by pressing 1 for the Blue Bouncy gel, 2 for the Orange Speed gel, 3 for the White Portal gel and 4 to spawn in Water to clean the gels.
bind 1 ent_create_paint_bomb_jump
bind 2 ent_create_paint_bomb_speed
bind 3 ent_create_paint_bomb_portal
bind 4 ent_create_paint_bomb_erase

Cubes: You can spawn in the different cubes (except for the original one which is at the letter P) with the numbers 5 for the Laser cube, 6 for the Companion cube, 7 for the Edgeless cube, 8 for the Old cube (the leathered one from the old Aperture) and 9 for the Franken cube with the turrets fused to it.
bind 5 ent_create_portal_reflector_cube
bind 6 ent_create_portal_companion_cube
bind 7 ent_create_portal_weighted_sphere
bind 8 ent_create_portal_weighted_antique
bind 9 "ent_create prop_monster_box"

Error: Spawn in a useless error entity that does nothing other than exist and damage the charm of your maps with the 0 key!
bind 0 "ent_create prop_dynamic"
The command
Make sure to paste the whole command into the command box without leaving out anything and with server cheats on!

Update: I realised that pasting long commands doesn't work, so make sure to copy one then paste it, and slowly do it for all sections!

bind h "sv_cheats 1"; bind j "sv_cheats 0"; bind enter "impulse 100"; bind g god; bind u "sv_portal_placement_never_fail 1"; bind i "sv_portal_placement_never_fail 0"; bind v noclip; bind m kill; bind b thirdperson; bind n firstperson; bind x notarget

bind c fire_rocket_projectile; bind y fire_energy_ball; bind rshift "ent_fire !picker ignite"; bind r "ent_fire prop_portal fizzle"; bind o "ent_create npc_personality_core"; bind p ent_create_portal_weighted_cube

bind z "npc_create npc_portal_turret_floor"; bind l "ent_create npc_security_camera"; bind 1 ent_create_paint_bomb_jump; bind 2 ent_create_paint_bomb_speed; bind 3 ent_create_paint_bomb_portal

bind 4 ent_create_paint_bomb_erase; bind 5 ent_create_portal_reflector_cube; bind 6 ent_create_portal_companion_cube; bind 7 ent_create_portal_weighted_sphere; bind 8 ent_create_portal_weighted_antique

bind 9 "ent_create prop_monster_box"; bind 0 "ent_create prop_dynamic"; bind alt ent_remove
Warnings (must read!)
WARNING: This takes every single available letter key on the keyboard and numbers to do stuff. It doesnt take advantage of the following keys: W, A, S, D, E, Q, T, F, K
Make sure to rebind the Push-To-Talk key to K or something else (K is the only unchanged bind)
The only keys that aren't neither a letter or a number are the Flashlight key binded to the Enter (Return) Key, the Burn key binded to the Right Shift key and the Delete key on Alt.
You can always modify the command to make it fit for you
If you want to remove, go to the settings, go to keyboard and mouse, got to rebind keys and select set default keys. This will reset every binding to the orginal ones you had when you got the game, but you can change it as well. Note also that turning on Server Cheats disables achivements until you turn them off and reset the map/server!

Thanks for viewing this guide! Be sure to drop a like on it!
17 Comments
Jäger 14 Jan @ 12:18am 
Fantastic guide! I just found out that you can also bind commands to Mouse 4 and 5!
makes things even faster
LittleNinja 10 May, 2020 @ 9:21am 
Dont spam any buttons at all. L-alt espesialy
LittleNinja 10 May, 2020 @ 8:34am 
Ok. I tried it, but my game crashed after a while. so...
leosefcik  [author] 10 May, 2020 @ 6:15am 
I'm gonna have to update it probably since i've found better ways and layouts for this, but use it if you want.
LittleNinja 8 May, 2020 @ 2:34pm 
This is so cool, but maybe another time. Dont want to mess up my keyboard.
leosefcik  [author] 28 Dec, 2019 @ 1:13am 
Yall necromancing this guide i really dont want to update it maybe in like a few months
herobrinethree 27 Dec, 2019 @ 8:16pm 
you can make this slightly better by using bindtoggle instead of bind for the commands that have 1 or 0 at the end
handle w/ care 26 Dec, 2019 @ 5:13pm 
you can turn on cheats and still get achievements
Step 1: turn on cheats
Step 2: insert all commands
Step 3: turn off cheats
Step 4: save, then load the session
CHEEKY BOYS
✪Mskicha 22 Dec, 2019 @ 3:01pm 
noicec
makmillion 9 Jul, 2019 @ 9:24pm 
i found that out just now