# What might prevent "Enter" from creating a new paragraph?

**URL:** https://discuss.prosemirror.net/t/what-might-prevent-enter-from-creating-a-new-paragraph/2219
**Category:** Uncategorized
**Created:** [September 16, 2019, 9:46pm UTC](https://discuss.prosemirror.net/t/what-might-prevent-enter-from-creating-a-new-paragraph/2219 "2019-09-16T21:46:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ncphillips](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/ncphillips/32/387_2.png) [@ncphillips](https://discuss.prosemirror.net/u/ncphillips)
#### Post date: [September 16, 2019, 9:46pm UTC](https://discuss.prosemirror.net/t/what-might-prevent-enter-from-creating-a-new-paragraph/2219/1 "2019-09-16T21:46:35Z")

</div>

I made some changes to the way I setup the schema and define the keymap.

Everything works, except pressing “Enter” at the end of a paragraph to create a new paragraph.

I think it might have something to do with my schema and not the keymaps. Even if I return only the `baseKeymap` it doesn’t work.

---

<div class="post-metadata">

### Author: ![ncphillips](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/ncphillips/32/387_2.png) [@ncphillips](https://discuss.prosemirror.net/u/ncphillips)
#### Post date: [September 17, 2019, 12:28am UTC](https://discuss.prosemirror.net/t/what-might-prevent-enter-from-creating-a-new-paragraph/2219/2 "2019-09-17T00:28:23Z")

</div>

9 PM

I modified my enter-command. To see which command was getting called:

 ![image](https://discuss.prosemirror.net/uploads/secondsite/original/2X/4/42afcc9d45e99a2fd7278b7695453e1b1473519f.png)

When I press “Enter” at the end of the paragraph. The `splitBlock` command is being called:

![image](https://discuss.prosemirror.net/uploads/secondsite/original/2X/1/18e4101b02727d75765fb983d4b253d706bef54e.png)

9:15PM

Turns out this is a total red-herring. I just switched to master, where the keymap is working, and I’m gettting the same output.

9:35 PM

Copied the keymap file from the new branch to master. Keymaps work, so the problem is definitely not there.

---

<div class="post-metadata">

### Author: ![ncphillips](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/ncphillips/32/387_2.png) [@ncphillips](https://discuss.prosemirror.net/u/ncphillips)
#### Post date: [September 17, 2019, 12:58am UTC](https://discuss.prosemirror.net/t/what-might-prevent-enter-from-creating-a-new-paragraph/2219/3 "2019-09-17T00:58:01Z")

</div>

10:03 PM

I started digging into the `splitBlock` command. It looks like it thinks it should run, but isn’t being run.

With some logging…

 ![image](https://discuss.prosemirror.net/uploads/secondsite/original/2X/4/4949958dc761026b267c907bd91b779c249abbe1.png)

I’m seeing that the default type is `blockquote`. I’m guessing that should be paragraph.

10:07 PM

Confirmed. The issue was that, in the refactor, I listed the nodes alphabetically:

![image](https://discuss.prosemirror.net/uploads/secondsite/original/2X/4/4dd7715253bb22a61297fcf70a55eab233179925.png)

Turns out the order matter 🤷‍♂️ This has fixed the issue:

![image](https://discuss.prosemirror.net/uploads/secondsite/original/2X/a/a15a671c79bf915d62bbbdc5140f509ef05b6653.png)
