# Adding custom keybinding overrides other keys

**URL:** <https://discourse.julialang.org/t/adding-custom-keybinding-overrides-other-keys/71612>\
**Category:** New to Julia\
**Created:** [November 16, 2021, 9:14pm UTC](https://discourse.julialang.org/t/adding-custom-keybinding-overrides-other-keys/71612 "2021-11-16T21:14:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rs31415](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rs31415/32/30878_2.png) [@rs31415](https://discourse.julialang.org/u/rs31415)\
**Post date:** [November 16, 2021, 9:14pm UTC](https://discourse.julialang.org/t/adding-custom-keybinding-overrides-other-keys/71612/1 "2021-11-16T21:14:44Z")

</div>

I want to add a custom keyboard shortcut as described here: [The Julia REPL · The Julia Language](https://docs.julialang.org/en/v1/stdlib/REPL/#Customizing-keybindings). I thought it would be quite easy to set an alias for the “home” key:

```julia
import REPL

const mykeys = Dict{Any,Any}(
    # Move to beginning of line
    "^i" => "^a",
)

function customize_keys(repl)
    repl.interface = REPL.setup_interface(repl; extra_repl_keymap = mykeys)
end

atreplinit(customize_keys)

```

this works. Unfortunately, TAB is moving the cursor to the beginning of the line. Any idea what did I do wrong there?

I’m running Julia 1.6.3 on Ubuntu 20.04.

Thank you for your help!
